const icongen = require('icon-gen')
const path = require('path')
const resources = path.join(__dirname, '../resources')

icongen(path.join(resources, './icon.svg'), path.join(resources, 'icons'), {
  report: true,
  ico: {
    name: 'icon',
    sizes: [16, 24, 32, 48, 64, 128, 256]
  },
  icns: {
    name: 'icon',
    sizes: [16, 32, 64, 128, 256, 512, 1024]
  },
  favicon: {
    name: 'favicon-',
    pngSizes: [32, 57, 72, 96, 120, 128, 144, 152, 195, 228],
    icoSizes: [16, 24, 32, 48, 64]
  }
})
  .then((results) => {
    console.log(results)
  })
  .catch((err) => {
    console.error(err)
  })
